package com.yuanchu.goods.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanchu.common.utils.PageUtils;
import com.yuanchu.common.utils.Query;
import com.yuanchu.goods.dao.YoshopDeliveryDao;
import com.yuanchu.goods.entity.YoshopDeliveryEntity;
import com.yuanchu.goods.service.YoshopDeliveryService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("yoshopDeliveryService")
public class YoshopDeliveryServiceImpl extends ServiceImpl<YoshopDeliveryDao, YoshopDeliveryEntity> implements YoshopDeliveryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<YoshopDeliveryEntity> page = this.page(
                new Query<YoshopDeliveryEntity>().getPage(params),
                new QueryWrapper<YoshopDeliveryEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<YoshopDeliveryEntity> queryGoodsDelivery(Map<String, Object> params) {

        return this.list();
    }

}